import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Injectable({
  providedIn: 'root'
})
export class SysMenuService {



  constructor(private http: HttpClient) {
  }

  getSysMenuList() {
    return this.http.get('sys/menu/list');
  }

  getSysMenuById(id: string) {
    return this.http.get(`sys/menu/${id}`);
  }

  updateSysMenu(detail: any) {
    return this.http.put(`sys/menu`, detail);
  }
}
